@(f: Form[Widget.TextEntry], searches: List[models.aaa.Asset] = null, recs: List[models.aaa.Asset] = null, pid: String) 
@import helper._ 

<h3>Suggestions</h3>
@if(recs.isEmpty()) {
    <p>No recommendation</p>
} else {
        <ul>
            @for(d <- recs) {
            <li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">@d.getName()</a>
            </li> 
            }
        </ul>
}

<h3>Recherche</h3>
<form action = "" method="POST" class="form-horizontal">
<input 	type="text" 
				name="aaa-re" 
				id="aaa-re" 
				value="" 
				placeHolder="Recherche"/>
		<input class="btn" name="go" type="submit" value="Go !">
</form>
@if(!searches.isEmpty()) {
        <ul>
            @for(d <- searches) {	            
            	@if(d.getName()==null) {
            		@if(d.getDescription()!=null) {
	            		<li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">
	            		@d.getDescription(100)
	            		</a></li> 
	            	} else {
	            		<li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">
	            		Sans titre
	            		</a></li> 
	            	}
            	} else {
            		<li><a href="@routes.Asset.redirect(pid, d.getId()).absoluteURL()">
            		@d.getName()
            		</a></li> 
            	}
            }
        </ul>
}